package com.dream.testtubebaby_doctor.utils;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.ImageView;

import com.dream.testtubebaby_doctor.R;
public class ViewFactory {

	public static ImageView getImageView(Context context, String url) {
		ImageView imageView = (ImageView)LayoutInflater.from(context).inflate(
				R.layout.view_banner, null);
		String url1 = AppUtil.getCompletePhotoUrl(url);
		ImageLoader.getInstance().loadNetWorkImage(url1, imageView);
		return imageView;
	}
	
	public static ImageView getImageView(Context context, int resid) {
		ImageView imageView = (ImageView)LayoutInflater.from(context).inflate(
				R.layout.view_banner, null);
//		ImageLoader.getInstance().displayImage(url, imageView);
		imageView.setImageResource(resid);
		return imageView;
	}
}
